//
//  MessageListCell.m
//  mangoClient
//
//  Created by dazhou on 16/5/21.
//  Copyright © 2016年 dazhou. All rights reserved.
//

#import "MessageListCell.h"


@interface MessageListCell()
@property (weak, nonatomic) IBOutlet UIImageView *mImageView;
@property (weak, nonatomic) IBOutlet UILabel *mLabel1;
@property (weak, nonatomic) IBOutlet UILabel *mLabel2;
@property (weak, nonatomic) IBOutlet UILabel *mLabel3;


@end

@implementation MessageListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.mLabel1.textColor = HEXRGB(0x222222);
    self.mLabel2.textColor = HEXRGB(0x909090);
    self.mLabel3.textColor = HEXRGB(0x909090);
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)initCell:(NSDictionary *)dic
{
    self.mLabel1.text = @"系统消息";
    self.mLabel2.text = [dic valueForKey:@"time"];
    
    NSDictionary *messagecontent =  dic[@"messagecontent"];
    self.mLabel3.text = messagecontent[@"aps"][@"alert"];
}

@end
